<?php
/**
 * 极简随手记
 * ============================================================================
 * 版权所有 2024-2099 www.alipay168.cn，并保留所有权利。
 * 网站地址: https://www.alipay168.cn
 * ============================================================================
 * Author: 草上飞
 * Email: wei@alipay16.cn
 * QQ: 2719875001
 * Date: 2025/1/25
 * 描述:
 */

namespace app\controller\command;

use app\result\CashflowResult;
use think\console\Command;
use think\console\Input;
use think\console\Output;

class BillCheck extends Command
{
    protected function configure()
    {
        $this->setName('bill_check')
            ->setDescription('周期生成账单');
    }

    protected function execute(Input $input, Output $output)
    {
        $res = (new CashflowResult())->cycle_bill_execute();
        $output->writeln($res['msg']);
    }
}
